package com.li.friend.service.user;

import com.li.common.core.domain.R;
import com.li.common.core.domain.vo.LoginUserVO;
import com.li.friend.domain.user.dto.UserDTO;
import com.li.friend.domain.user.dto.UserUpdateDTO;
import com.li.friend.domain.user.vo.UserVO;

public interface IUserService {

    //通过邮箱注册用户
   String sendCode(UserDTO userDTO);

    int register(UserDTO userDTO);

    R<String> login(String email, String password);

    boolean logout(String token);

    R<LoginUserVO> info(String token);

    UserVO detail();

    int edit(UserUpdateDTO userUpdateDTO);

    int updateHeadImage(String headImage);
}
